﻿using APIBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Models;

namespace APIUI.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class MemberClassController : ControllerBase
    {
        public MemberClassController(MemberClassBLL bLL)
        {
            BLL = bLL;
        }

        public MemberClassBLL BLL { get; }

        /// <summary>
        /// 会员等级查询
        /// Select * from 表名
        /// </summary>
        /// <returns></returns>
        [HttpGet("GetMemberClasses")]
        public List<MemberClass> GetMemberClasses()
        {
            return BLL.GetMemberClasses();
        }
    }
}
